namespace LiteTools.tools
{
    public class NumberUtils
    {
        public static string GetHexStr(int num)
        {
            var hex = num.ToString("X");
            var hexLength = hex.Length;
            if (hexLength % 2 == 0)
            {
                return "0x" + hex;
            }

            return "0x0" + hex;
        }
    }
}